package pattern.factory;

public class SimplePizzaFactory {
	public Pizza createPizza(String type){
		Pizza pizza;
		
		if("cheese".equals(type)){
			pizza = new Cheese();
		}else{
			return null;
		}
		return pizza;
	}
}
